/**
 * 用户相关rest api
 */
import request from '@/utils/request'

//API常量
const APIS = {
    V1: "/v1"
}

export function queryCapital(param) {
    return request({
        url: APIS.V1 + `/system/capital/list`,
        method: 'get',
        params:param
    })
}

export function queryCapitalOrg(params) {
    return request({
        url: APIS.V1 + `/system/capital/org`,
        method: 'get',
        params:params
    })
}

export function saveOrUpdate(data) {
    return request({
        url: APIS.V1 + "/system/capital/saveOrUpdate",
        method: 'POST',
        data: data
    })
}

export function allCapitals() {
    return request({
        url: APIS.V1 + "/system/capital/allCapitals",
        method: 'get'
    })
}
